const express = require('express');
const router = express.Router();
const authController = require('../controllers/authController');
const jwtMiddleware = require('../middleware/jwtMiddleware');

router.post('/login', authController.login);
router.post('/logout', authController.logout);
router.get('/user-info', jwtMiddleware, authController.getUserInfo);

module.exports = router;